<?php $seasonId = intval($sf_user->getAttribute('activeSeasonId'));?>
<?php $newss = Doctrine::getTable('News')->fetchall(array('seasonId'=>$seasonId,'limit'=>4))?>

<div class="box-shadow">
<ul id="myGallery">
 <?php foreach ($newss as $news):?>	
		<li>
 			 <?php echo image_tag('/uploads/news/'.$news->getImage(), array('longdesc'=>$news->getIntro(), 'title'=>$news, 'dir'=>url_for('content/show?id='.$news->getId())))?>
 		</li> 		
 <?php endforeach; ?>
</ul>
</div>

<br clear="all">

<script>
	$(function(){
		$('#myGallery').galleryView({			
			filmstrip_position: 'right',
			frame_width: 100,
			frame_height: 80,
			show_overlays: true,
			overlay_position: 'bottom',
			panel_animation: 'crossfade',
			panel_width: 570,
			panel_height: 320,
			pan_images: true,
			frame_gap: 2,
			filmstrip_size: 3,
			show_captions: false,
			show_overlays:true,
			show_infobar:false
		});
	});	
</script>